﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
	<head>
		<title></title>
		<style>
		body {
			color:black;
			background-color:#fff;
		}
		.message-block {
			padding-top:5px;
		}
		.message-time {
			font-size:9pt;
		}
		.message-author {
			color:#336699;
			font-size:10pt;
		}
		.message-self {
			color:#996633 !important;
		}
		.message-content{
			font-size:10pt;
			padding:10px;
			padding-left:15px;
		}
		</style>
		<script>
			function sendMessage(user_name, message_content, time)
			{
				var message = message_content
						.replace(/</g, '&lt;')
						.replace(/>/g, '&gt;')
//						.replace(/(^\s*)/g,   " ")
//						.replace(/(\s*$)/g,   " ")
						.replace(/\r/g, '')
						.replace(/\n/g, '<br>')
						.replace(/\t/g, '&nbsp;&nbsp;&nbsp;&nbsp;')
						.replace(/ /g, '&nbsp;')
						;
				var content = document.getElementById("content");
				content.innerHTML = content.innerHTML+"<div class=message-block><span class=message-author>"
						+user_name+"</span> <span class=message-time>"
						+time+"</span></div><div class=message-content>"
						+message+"</div>";
			}
		</script>
	</head>
	<body>
	    <div id="content">
	    	<!--div style="border-bottom:1px gray solid; padding:10px;"><b>Welcome to Anyask, ask anything you want!</b></div-->
	    </div>
	</body>
	<script>
		//for (var i=0; i<10; i++)
		//	sendMessage("wolf", "wolf", "wolf");
	</script>
</html>